package com.nut.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Pattern;

/**
 * @ author : HyoJoo-W
 * @ createDate : 2021-04-15 15:31
 */

@ToString
@Setter
@Getter
public class User
{
    private int number;

    @Pattern(regexp = "(^[a-zA-Z-0-9_-]{1,6}$)",
             message = "用户名只能是1-6位字母、横线、下划线的组合")
    private String name;
    private String password;
    private String gender;
    private String date;
    private float money;
}
